package bean;

/**
 * Created by shiyanqi on 19/4/9.
 */
public class TradeBean {
    private String trade_no; //广分订单号
    private String trade_status; //订单状态
                        //SUCCESS:支付成功
                        //REFUND:转入退款流程
                        //REVOKED:已经撤单
                        //NOTPAY:等待支付
    private String pay_type; //支付类型
                        //MICROPAY: 条码支付
                        //NATIVE: 扫码支付
                        //JSAPI:公众号支付
    private String pay_channel; //支付渠道
                        //ALIPAY:支付宝
                        //WECHAT:微信
                        //CLOUD_UNION: 银联云闪付
    private int total_amount;  //订单金额(分)
    private int seller_amount; //商户实收金额(分)
    private int seller_coupon; //商户优惠金额(分)
    private int buyer_amount; //用户实付金额(分)
    private int chn_coupon; //渠道优惠金额(分)
    private int undiscount_amount; //不可打折金额(分)
    private String buyer_id; //买家付款账户
    private String store_name; //门店名称
    private String store_code; //门店号
    private String dev_id; //终端设备号
    private String down_trade_no; //接入方订单号
    private String up_trade_no; //支付渠道订单号
    private String raw_data; //自定义数据
    private String oper_id; //操作员工号
    private String subject; //订单标题
    private String time_end; //交易时间
    private String refund_time; //退款时间(状态未退款才有)
    private String code_url; //扫码支付链接URL
    private String prepay_id; //微信才有返回


    public String getTrade_no() {
        return trade_no;
    }

    public void setTrade_no(String trade_no) {
        this.trade_no = trade_no;
    }

    public String getTrade_status() {
        return trade_status;
    }

    public void setTrade_status(String trade_status) {
        this.trade_status = trade_status;
    }

    public String getPay_type() {
        return pay_type;
    }

    public void setPay_type(String pay_type) {
        this.pay_type = pay_type;
    }

    public String getPay_channel() {
        return pay_channel;
    }

    public void setPay_channel(String pay_channel) {
        this.pay_channel = pay_channel;
    }

    public int getTotal_amount() {
        return total_amount;
    }

    public void setTotal_amount(int total_amount) {
        this.total_amount = total_amount;
    }

    public int getSeller_amount() {
        return seller_amount;
    }

    public void setSeller_amount(int seller_amount) {
        this.seller_amount = seller_amount;
    }

    public int getSeller_coupon() {
        return seller_coupon;
    }

    public void setSeller_coupon(int seller_coupon) {
        this.seller_coupon = seller_coupon;
    }

    public int getBuyer_amount() {
        return buyer_amount;
    }

    public void setBuyer_amount(int buyer_amount) {
        this.buyer_amount = buyer_amount;
    }

    public int getChn_coupon() {
        return chn_coupon;
    }

    public void setChn_coupon(int chn_coupon) {
        this.chn_coupon = chn_coupon;
    }

    public int getUndiscount_amount() {
        return undiscount_amount;
    }

    public void setUndiscount_amount(int undiscount_amount) {
        this.undiscount_amount = undiscount_amount;
    }

    public String getBuyer_id() {
        return buyer_id;
    }

    public void setBuyer_id(String buyer_id) {
        this.buyer_id = buyer_id;
    }

    public String getStore_name() {
        return store_name;
    }

    public void setStore_name(String store_name) {
        this.store_name = store_name;
    }

    public String getStore_code() {
        return store_code;
    }

    public void setStore_code(String store_code) {
        this.store_code = store_code;
    }

    public String getDev_id() {
        return dev_id;
    }

    public void setDev_id(String dev_id) {
        this.dev_id = dev_id;
    }

    public String getDown_trade_no() {
        return down_trade_no;
    }

    public void setDown_trade_no(String down_trade_no) {
        this.down_trade_no = down_trade_no;
    }

    public String getUp_trade_no() {
        return up_trade_no;
    }

    public void setUp_trade_no(String up_trade_no) {
        this.up_trade_no = up_trade_no;
    }

    public String getRaw_data() {
        return raw_data;
    }

    public void setRaw_data(String raw_data) {
        this.raw_data = raw_data;
    }

    public String getOper_id() {
        return oper_id;
    }

    public void setOper_id(String oper_id) {
        this.oper_id = oper_id;
    }

    public String getSubject() {
        return subject;
    }

    public void setSubject(String subject) {
        this.subject = subject;
    }

    public String getTime_end() {
        return time_end;
    }

    public void setTime_end(String time_end) {
        this.time_end = time_end;
    }

    public String getRefund_time() {
        return refund_time;
    }

    public void setRefund_time(String refund_time) {
        this.refund_time = refund_time;
    }

    public String getCode_url() {
        return code_url;
    }

    public void setCode_url(String code_url) {
        this.code_url = code_url;
    }

    public String getPrepay_id() {
        return prepay_id;
    }

    public void setPrepay_id(String prepay_id) {
        this.prepay_id = prepay_id;
    }

    @Override
    public String toString() {
        return "TradeBean{" +
                "trade_no='" + trade_no + '\'' +
                ", trade_status='" + trade_status + '\'' +
                ", pay_type='" + pay_type + '\'' +
                ", pay_channel='" + pay_channel + '\'' +
                ", total_amount=" + total_amount +
                ", seller_amount=" + seller_amount +
                ", seller_coupon=" + seller_coupon +
                ", buyer_amount=" + buyer_amount +
                ", chn_coupon=" + chn_coupon +
                ", undiscount_amount=" + undiscount_amount +
                ", buyer_id='" + buyer_id + '\'' +
                ", store_name='" + store_name + '\'' +
                ", store_code='" + store_code + '\'' +
                ", dev_id='" + dev_id + '\'' +
                ", down_trade_no='" + down_trade_no + '\'' +
                ", up_trade_no='" + up_trade_no + '\'' +
                ", raw_data='" + raw_data + '\'' +
                ", oper_id='" + oper_id + '\'' +
                ", subject='" + subject + '\'' +
                ", time_end='" + time_end + '\'' +
                ", refund_time='" + refund_time + '\'' +
                ", code_url='" + code_url + '\'' +
                ", prepay_id='" + prepay_id + '\'' +
                '}';
    }
}
